<template>
  <div>
    <h1>Parent</h1>
    <Child :count="count" :changeCount="changeCount"/>
  </div>
</template>

<script>
import Child from './Child.vue'
export default {
    name:'Parent',
    data(){
      return {
        count:0
      }
    },
    methods: {
      changeCount(val){
        this.count += val
      }
    },
    components:{
        Child
    }
}
</script>

<style>

</style>